#!/usr/bin/env ruby

Dir.chdir($0.match(/(.*\/)/)[0])

require 'util'

filename = "../data/test-data-" + Time.now.strftime("%Y-%m-%d_%H:%M:%S") + ".xml"

system( "tv_grab_na_dd --config-file " + XMLTV_CONFIG + " --dd-data #{filename} --download-only --days 2 ")
